package searchFiles;

import java.io.File;

public class SearchFiles {
	public static void main(String[] args) {
		File file = new File("E:/img");
		 getAllFiles(file);
	}

	static void p(Object o) {
		System.out.println(o);
	}

	private static void getAllFiles(File file) {
		if (file.isDirectory()) {
			for (int i = 0; i <file.listFiles().length; i++) {
				getAllFiles(file.listFiles()[i]);
                 
			}
		} else
			System.out.println(file.getPath());
	}

}
